package org.gd.hellospring.injections;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Gorhover
 * @version 1.0-SNAPSHOT
 * @since 2013-11-13 08:49
 */
class App {

    public static void main(String[] args) {
        for(int i=0; i<1; i++) {
            ApplicationContext context = new ClassPathXmlApplicationContext("org/gd/hellospring/injections/context.xml");
            Inter inter = context.getBean(Inter.class);
            System.out.printf("\nid: %s\nname: %s\n",
                    inter.getId(), inter.getName());
        }
    }
}
